import { DataTypes } from 'sequelize'
const seq = require('../db/seq')

const CourseTypeModels: any = seq.define('course_type', {
  id: {
    type: DataTypes.INTEGER,
    allowNull: false,
    primaryKey: true
  },
  type: {
    type: DataTypes.STRING(30),
    allowNull: false,
    comment: "课程类型"
  }
}, {
  tableName: 'course_type',
  timestamps: false,
  indexes: [
    {
      name: "PRIMARY",
      unique: true,
      using: "BTREE",
      fields: [
        { name: "id" },
      ]
    },
  ]
});

module.exports = CourseTypeModels